package automatyzacja;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class LoginPage extends Page {

	public LoginPage(WebDriver driver) {
		super(driver);

	}

	public void open() {
		open_www("http://demo.bananascrum.com/login");

	}

	public SprintBacklogPage logIn(String aLogin, String aPassword) {
		insertText(By.id("login"), aLogin);
		insertText(By.id("password"), aPassword);
		click(By.name("commit"));

		return new SprintBacklogPage(driver);

	}

	public void isLoginFaild() {
		assertTextPresent("Login failed");
		
	}
}
